import React, { Component } from 'react';
import { HashRouter, Redirect, Route } from "react-router-dom";

import Tabbar from "./pages/tabbar";
import MapFound from "./pages/mapFound";

class App extends Component {
  render() {
    return (
      <div>
        <HashRouter>
        <Route path="/">
           {/* 重定向 */}
          <Redirect to='/home/index'></Redirect>
        </Route>
          <Route path="/home" component={Tabbar}></Route>
          <Route path="/mapFound" component={MapFound}  ></Route>
        </HashRouter>
      </div>
    );
  }
}
export default App;